﻿@model IFDB.ViewModels.PartialViewModels.LeagueTableViewModel

<table class="LeagueTable">
    <thead>
        <tr>
            <th/>
            <th>P</th>
            <th>W</th>
            <th>D</th>
            <th>L</th>
            <th>F</th>
            <th>A</th>
            <th>Pts</th>
        </tr>
    </thead>

@foreach (var item in Model.LeagueTable)
{
    <tr>
        <td class="TeamName">@Html.ActionLink(item.Team.TeamName, "Index", "Team", new { teamId = item.Team.TeamId.ToShortGuid() }, null)</td>
        <td class="Stat">@Html.DisplayFor(modelItem => item.Played)</td>
        <td class="Stat">@Html.DisplayFor(modelItem => item.Won)</td>
        <td class="Stat">@Html.DisplayFor(modelItem => item.Drawn)</td>
        <td class="Stat">@Html.DisplayFor(modelItem => item.Lost)</td>
        <td class="Stat">@Html.DisplayFor(modelItem => item.Scored)</td>
        <td class="Stat">@Html.DisplayFor(modelItem => item.Conceded)</td>
        <td class="Stat">@Html.DisplayFor(modelItem => item.Points)</td>
    </tr>
}

</table>
